<div style="display:table-caption">
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml">
    <script>
    if (window.testRunner)
      testRunner.dumpAsText();
    </script>
    <foreignObject display="inherit"><xhtml:div>This test PASSED if we don't crash when the display value is table-caption by using inherit</xhtml:div></foreignObject>
  </svg>
</div>
